package mysql

import "fmt"

func Delete1() {
	// 软删除
	DB.Delete(&Student{}, 1)
	var student Student
	// 查找软删除的数据
	DB.Unscoped().First(&student, 1)
	fmt.Printf("student.Name: %v\n", student.Name)
	// 物理删除
	DB.Unscoped().Delete(&student)
}
